/**
 * Huisou.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */

package com.chenzehe.zdmya.service;

import java.util.List;

import com.chenzehe.java.core.orm.Page;
import com.chenzehe.java.core.orm.PageRequest;
import com.chenzehe.zdmya.domain.Content;

/**
 * @description
 * 
 * @author chenzehe
 * @email hljuczh@163.com
 * @create 2012-7-26 下午10:51:05
 */

public interface IContentService {
	int saveContent(Content content);

	Content getContentById(Integer id);

	Content getPreContentById(Integer id);

	Content getNextContentById(Integer id);

	Page<Content> queryPageContent(PageRequest pageRequest);

	List<Content> queryTopContent();

	List<Content> queryLimitContent(int limit);

	List<Content> queryLimitContentByCategoryEname(int limit,
			String categoryEname);

	Content getById(int id);

	Page<Content> queryByCategory(PageRequest pageRequest, String pename,
			String ename);

	Page<Content> queryByType(PageRequest pageRequest, String ename);

	Page<Content> queryByArea(PageRequest pageRequest, String ename);

	Page<Content> queryByMall(PageRequest pageRequest, String ename);

	int updateCommentCount(int contentId);

	int updateCollectionCount(int contentId);

	int updatePingFen(int contentId, int rate);

	String getGoUrl(int id);

	Long queryNumByUser(int userId);

}
